package com.gxuwz.stats.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxuwz.stats.entity.IntellectualProperty;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IntellectualPropertyMapper extends BaseMapper<IntellectualProperty> {

    @Insert("INSERT INTO rsp_intellectual_property " +
            "(intellectual_id, user_id, authorization_number, intellectual_category, intellectual_score, intellectual_notes, intellectual_achievement_name) " +
            "VALUES " +
            "(#{intellectualId}, #{userId}, #{authorizationNumber}, #{intellectualCategory}, #{intellectualScore}, #{intellectualNotes}, #{intellectualAchievementName})")
    int insertWithUserId(IntellectualProperty intellectualProperty);
}
